import request from '@/utils/request'

// 查询banner列表
export function listData(query) {
  return request({
    url: '/config/banner/',
    method: 'get',
    params: query
  })
}

// 查询banner详细
export function getDetail(id) {
  return request({
    url: '/config/banner/' + id,
    method: 'get'
  })
}


// 新增banner
export function addData(data) {
  return request({
    url: '/config/banner/',
    method: 'post',
    data: data
  })
}

// 修改banner
export function updateData(data) {
  return request({
    url: '/config/banner/',
    method: 'put',
    data: data
  })
}

// 删除banner
export function delData(id) {
  return request({
    url: '/config/banner/' + id,
    method: 'delete'
  })
}


